def run(params:list[str]):
    from modelscope.pipelines import pipeline
    from modelscope.utils.constant import Tasks
    #pip install sentencepiece
    from modelscope.models.nlp import T5ForConditionalGeneration
    from modelscope.preprocessors import TextGenerationTransformersPreprocessor
    import sys
    from ApiBase import apiBase

    try:
        model = T5ForConditionalGeneration.from_pretrained('ClueAI/PromptCLUE-base-v1-5', revision='v0.1')
        preprocessor = TextGenerationTransformersPreprocessor(model.model_dir)
        pipeline_t2t = pipeline(task=Tasks.text2text_generation, model=model, preprocessor=preprocessor)

        #print(pipeline_t2t('这是关于哪方面的新闻：\n如果国家沉没，中国会接收难民吗？\n选项：教育,科技,军事,旅游,国际,游戏'))
        # {'text': '国际'}
        cnt = apiBase.argv(1,'如果国家沉没，中国会接收难民吗？')
        req = apiBase.argv(2,'教育,科技,军事,旅游,国际,游戏')
        prompt = f"关于哪方面的问题：\{cnt}\n选项：{req}\n答案："
        print(pipeline_t2t(prompt))
    finally:
        pipeline_t2t=None